<div class="thumbnail"> <% if(typeof image != 'undefined' && image != null && image != ''){%> <img style="max-width:320px; max-height:200px;" src="<%=image.src%>" alt="image.alt"> <% }%> <div class="caption"> <h4><%= heading%></h4> <p><%= body%></p> <% _.each(buttons, function(button){%> <p align="center"> <a href="<%=button.url%>" class="btn btn-primary btn-block"><%= button.label%></a> </p> <% });%> </div> </div>